package com.xja.mapper;

import com.xja.entity.CoursePerson;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CoursePersonMapper {
    int deleteByPrimaryKey(Integer cpid);

    int insert(CoursePerson record);

    int insertSelective(CoursePerson record);

    CoursePerson selectByPrimaryKey(Integer cpid);

    int updateByPrimaryKeySelective(CoursePerson record);

    int updateByPrimaryKey(CoursePerson record);

    CoursePerson selectCourseByUid(@Param("uid") Integer uid,@Param("cid") Integer cid);

    int addPerson(@Param("cid") Integer cid,@Param("uid") Integer uid);

    int updateNumber(Integer cid);
}